package com.liuyang.homework.Bean;

import java.io.Serializable;
import java.util.UUID;

/**
 * Created by liuyang on 2017/1/14.
 */

public class News implements Serializable {

    private UUID uuid;
    private String title,content,keyWords,url,source,image,createdAt;

    private boolean isKey;

    private int _id;

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public void set_id(int _id) {
        this._id = _id;
    }


    public News(){
        this(UUID.randomUUID());
    }

    public News(UUID uuid){
        this.uuid = uuid;
        this.isKey = false;
    }

    public int get_id() {
        return _id;
    }

    public UUID getUuid() {
        return uuid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getKeyWords() {
        return keyWords;
    }

    public void setKeyWords(String keyWords) {
        this.keyWords = keyWords;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public boolean isKey() {
        return isKey;
    }

    public void setKey(boolean key) {
        isKey = key;
    }


    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
